package com.iran.order.example;

public class TestClient {
    public static void main(String[] args) {
        //准备
        Barbecuner chef = new Barbecuner();
        BakeMuttonCommand bakeMutton1 = new BakeMuttonCommand(chef);
        BakeMuttonCommand bakeMutton2 = new BakeMuttonCommand(chef);
        Command bakeChickenWing = new BakeChickenWing(chef);
        bakeChickenWing.setCommandName("鸡翅哥");
        Waiter waiter = new Waiter();

        //开始点菜
        waiter.setCommand(bakeMutton1);
        waiter.setCommand(bakeMutton2);
        waiter.setCommand(bakeChickenWing);

        waiter.notifyCommand();

    }
}
